///////////////////////
// jOHMap  Variables //
/////////////////////// 

	JohmapImplPortBinding service; 

	ns1__SaveTableImageInput input;
	ns1__SaveTableImageOutput output;

	// define table image
	ns1__tableimage tableimage;
	ns1__authentication authentication;
	ns1__tableimagesite site;
	ns1__tableimagecard flopCardA;
	ns1__tableimagecard flopCardB;
	ns1__tableimagecard flopCardC;
	ns1__tableimagecard turnCard;
	ns1__tableimagecard riverCard;
	ns1__tableimageterrain terrain;

	// define decision 
	ns1__tableimagedecision tableimagedecision;
	double bet;	
	int wait;

	// Pots
	ns1__tableimagepot tableimagepot0;
	ns1__tableimagepot tableimagepot1;
	ns1__tableimagepot tableimagepot2;
	ns1__tableimagepot tableimagepot3;
	ns1__tableimagepot tableimagepot4;
	ns1__tableimagepot tableimagepot5;
	ns1__tableimagepot tableimagepot6;
	ns1__tableimagepot tableimagepot7;
	ns1__tableimagepot tableimagepot8;
	ns1__tableimagepot tableimagepot9;

	// Player variables 
	unsigned char player_ndx;
	
	holdem_player player;

	ns1__tableimageplayer       player0;
	int							player0id;
	string                      player0name;
	double                      player0balance;
	double                      player0currentBet;
	int							player0position;
	bool					    player0dealer;
	bool					    player0dealtin;
	bool					    player0folded;
	bool					    player0myTurn;
	bool					    player0occupied;
	bool					    player0seated;
	bool					    player0winner;
	ns1__tableimagecard		    player0pocketCardA;
	ns1__tableimagecard		    player0pocketCardB;

	ns1__tableimageplayer       player1;
	int							player1id;
	string                      player1name;
	double                      player1balance;
	double                      player1currentBet;
	int							player1position;
	bool					    player1dealer;
	bool					    player1dealtin;
	bool					    player1folded;
	bool					    player1myTurn;
	bool					    player1occupied;
	bool					    player1seated;
	bool					    player1winner;
	ns1__tableimagecard		    player1pocketCardA;
	ns1__tableimagecard		    player1pocketCardB;

	ns1__tableimageplayer       player2;
	int							player2id;
	string                      player2name;
	double                      player2balance;
	double                      player2currentBet;
	int							player2position;
	bool					    player2dealer;
	bool					    player2dealtin;
	bool					    player2folded;
	bool					    player2myTurn;
	bool					    player2occupied;
	bool					    player2seated;
	bool					    player2winner;
	ns1__tableimagecard		    player2pocketCardA;
	ns1__tableimagecard		    player2pocketCardB;

	ns1__tableimageplayer      player3;
	int							player3id;
	string                      player3name;
	double                      player3balance;
	double                      player3currentBet;
	int							player3position;
	bool					    player3dealer;
	bool					    player3dealtin;
	bool					    player3folded;
	bool					    player3myTurn;
	bool					    player3occupied;
	bool					    player3seated;
	bool					    player3winner;
	ns1__tableimagecard		    player3pocketCardA;
	ns1__tableimagecard		    player3pocketCardB;

	ns1__tableimageplayer      player4;
	int							player4id;
	string                      player4name;
	double                      player4balance;
	double                      player4currentBet;
	int							player4position;
	bool					    player4dealer;
	bool					    player4dealtin;
	bool					    player4folded;
	bool					    player4myTurn;
	bool					    player4occupied;
	bool					    player4seated;
	bool					    player4winner;
	ns1__tableimagecard		    player4pocketCardA;
	ns1__tableimagecard		    player4pocketCardB;

	ns1__tableimageplayer      player5;
	int							player5id;
	string                      player5name;
	double                      player5balance;
	double                      player5currentBet;
	int							player5position;
	bool					    player5dealer;
	bool					    player5dealtin;
	bool					    player5folded;
	bool					    player5myTurn;
	bool					    player5occupied;
	bool					    player5seated;
	bool					    player5winner;
	ns1__tableimagecard		    player5pocketCardA;
	ns1__tableimagecard		    player5pocketCardB;

	ns1__tableimageplayer      player6;
	int							player6id;
	string                      player6name;
	double                      player6balance;
	double                      player6currentBet;
	int							player6position;
	bool					    player6dealer;
	bool					    player6dealtin;
	bool					    player6folded;
	bool					    player6myTurn;
	bool					    player6occupied;
	bool					    player6seated;
	bool					    player6winner;
	ns1__tableimagecard		    player6pocketCardA;
	ns1__tableimagecard		    player6pocketCardB;

	ns1__tableimageplayer      player7;
	int							player7id;
	string                      player7name;
	double                      player7balance;
	double                      player7currentBet;
	int							player7position;
	bool					    player7dealer;
	bool					    player7dealtin;
	bool					    player7folded;
	bool					    player7myTurn;
	bool					    player7occupied;
	bool					    player7seated;
	bool					    player7winner;
	ns1__tableimagecard		    player7pocketCardA;
	ns1__tableimagecard		    player7pocketCardB;

	ns1__tableimageplayer      player8;
	int							player8id;
	string                      player8name;
	double                      player8balance;
	double                      player8currentBet;
	int							player8position;
	bool					    player8dealer;
	bool					    player8dealtin;
	bool					    player8folded;
	bool					    player8myTurn;
	bool					    player8occupied;
	bool					    player8seated;
	bool					    player8winner;
	ns1__tableimagecard		    player8pocketCardA;
	ns1__tableimagecard		    player8pocketCardB;


	ns1__tableimageplayer      player9;
	int							player9id;
	string                      player9name;
	double                      player9balance;
	double                      player9currentBet;
	int							player9position;
	bool					    player9dealer;
	bool					    player9dealtin;
	bool					    player9folded;
	bool					    player9myTurn;
	bool					    player9occupied;
	bool					    player9seated;
	bool					    player9winner;
	ns1__tableimagecard		    player9pocketCardA;
	ns1__tableimagecard		    player9pocketCardB;